import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/Home',
        name: 'Home',
        component: Home,
        meta: {
            layout: 'LayoutNone',
        },
    },
    {
        path: '/ExampleList1',
        name: 'ExampleList1',
        component: () => import('../views/ExampleList1.vue'),
        meta: {
            layout: 'Layout1',
        },
    },
    {
        path: '/ExampleList2',
        name: 'ExampleList2',
        component: () => import('../views/ExampleList2.vue'),
        meta: {
            layout: 'Layout2',
        },
    },
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
